<template>
    <div class="render-conteiner">
        <div v-if="$slots.search" class="render-search">
            <slot name="search" />
        </div>
        <div v-if="$slots.leftheader || $slots.rightheader" class="render-header">
            <div><slot name="leftheader" /></div>
            <div><slot name="rightheader" /></div>
        </div>
        <div class="render-inner">
            <div class="render-content"><slot /></div>
        </div>
    </div>
</template>
<style lang="scss" scoped>
.render-conteiner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.render-inner {
    background-color: #FBFBFB;
    padding: 20px;
    flex: 1;
    height: 0;
}
.render-content {
    height: 100%;
    background-color: #fff;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}
.render-search,
.render-header {
    padding: 20px;
    border-bottom: 1px solid #EEEEEE;
}
.render-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
:slotted(.render-hedaer-title) {
    font-size: 22px;
    margin-bottom: 0;
}
</style>